package com.hlhj.carview.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import com.hlhj.carview.Iview.CarInfoView
import com.hlhj.carview.bean.CarInfoBean
import com.hlhj.carview.module.CarInfoModule

/**
 * Created by Never Fear   on 2018\12\20 0020.
Never More....
 */
class CarInfoPresenter :BasePresenter<CarInfoModule,CarInfoView>(), CarInfoView {
    fun getcarinfo(c:Context){
        module?.getCarinfo(c)
    }
    override fun setCarinfo(carInfoBean: CarInfoBean) {
        view?.setCarinfo(carInfoBean)
    }
    override fun createModule() {
        module=CarInfoModule()
        module?.listener=this
    }
}